package zt.song.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author 宋伟宁
 * @Date 2023/12/16
 * @Version 1.0
 **/
@Controller
//@RequestMapping("/admin")
public class AdminController  extends BaseController{

     @GetMapping("/tickets")
     public String tickets(Model model){
         model.addAttribute("tickets",this.ticketService.list());
         return "admin/tickets";
     }

}
